import request from '@/api/request'



// 关闭订单
function finishOrder(orderId, data) {
  return request({
    url: `/lejuAdmin/order/finishOrder/${orderId}`, // 相对路径
    method: 'post',
    data
  })
}

// 查看订单详细
function orderDetail(orderId, data) {
  return request({
    url: `/lejuAdmin/order/orderDetail/${orderId}`, // 相对路径
    method: 'get',
    data
  })
}

// 查看订单列表
function findOrdersByPage(start, limit, data) {
  return request({
    url: `/lejuAdmin/order/findOrdersByPage/${start}/${limit}`, // 相对路径
    method: 'post',
    data
  })
}


// 强制确认收货
function receiveProductsForce(orderId, data) {
  return request({
    url: `/lejuAdmin/order/receiveProductsForce/${orderId}`, // 相对路径
    method: 'post',
    data
  })
}


// 确认发货
function sendDone(data) {
  return request({
    url: `/lejuAdmin/order/sendDone`, // 相对路径
    method: 'post',
    data
  })
}


export default {
  finishOrder,
  findOrdersByPage,
  orderDetail,
  receiveProductsForce,
  sendDone
}
